var app = getApp()

//商家入驻
function saveSupplier(data, callback) {
  app.func.Post(false,app.api.mine_saveSupplier, data, function (res) {
    typeof callback == "function" && callback(res)
  })
};
//提现总金额
function requestMoneys(param, callback) {

  getApp().func.Get(true, getApp().api.userTotalAmount, param,

    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
};
module.exports = {
  saveSupplier: saveSupplier,
  requestMoneys: requestMoneys
};